Every web service call seems to need an ID code in order to read the information. However, it is nearly impossible to find these IDs (Maintenance Windows, for instance) .
Does anyone know how to pull IDs when you don’t know what they are?
Every web service call seems to need an ID code in order to read the information. However, it is nearly impossible to find these IDs (Maintenance Windows, for instance) .
Does anyone know how to pull IDs when you don’t know what they are?
Hi Bruce,
The maintenance window ID would be the service’s ID. You can gather the ID from the web address (http://example.pagerduty.com/service-directory/IDhere). In the data from our Maintenance Window API call, you can see that it is within the services object as seen below:
If you have any issues finding other ID’s, feel free to email us (support@pagerduty.com) and we can assist with the API call you are making.
Thanks,
Abbott
Support Team Lead - East Coast
If I’m looking at the Maintenance Windows in the Pager Duty website, how can I get the ID? I’m trying to get information for a window that was created by someone else, probably directly on the website.
Hi Bruce,
Could you share the API call you are wanting to make and send us a message (support@pagerduty.com)? There are a few Maintenance Window API calls that you could make and I’d like to ensure that we are assisting you with the right information.
Thanks,
Abbott
Support Team Lead - East
A bit hacky, but if you enable “Developer Tools” in your browser you can see the PXXXXXX ID in the web interactions after you create/update a maintenance window.